using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Transaction;
namespace Thaire.Investment.Repository
{

    class EquityTransactionMap : ClassMap<EquityTransaction>
    {

        public EquityTransactionMap()
        {
            Table("EQUITY_TRANSACTION");
            Id(x => x.EquityTransactionID, "EQUITY_TRANSACTION_ID").GeneratedBy.Identity();

            Map(x => x.EquityHeaderID, "EQUITY_HEADER_ID");
            Map(x => x.TransactionType, "TRANSACTION_TYPE");
            Map(x => x.RefNO, "REF_NO");
            Map(x => x.TypeofpaymentID, "TYPEOFPAYMENT_ID");
            Map(x => x.TradeDate, "TRADE_DATE");
            Map(x => x.SettlementDate, "SETTLEMENT_DATE");
            Map(x => x.Unit, "UNIT");
            Map(x => x.ParUnit, "PAR_UNIT");
            Map(x => x.ParAmount, "PAR_AMOUNT");
            Map(x => x.PriceUnit, "PRICE_UNIT");
            Map(x => x.GrossAmount, "GROSS_AMOUNT");
            Map(x => x.ComRate, "COM_RATE");
            Map(x => x.ComAmount, "COM_AMOUNT");
            Map(x => x.VatRate, "VAT_RATE");
            Map(x => x.VatAmount, "VAT_AMOUNT");
            Map(x => x.PurchaseValueNet, "PURCHASE_VALUE_NET");
            Map(x => x.WHTaxRate, "WH_TAX_RATE");
            Map(x => x.WHTaxAmount, "WH_TAX_AMOUNT");
            Map(x => x.NetSettle, "NET_SETTLE");
            Map(x => x.PhysicalID, "PHYSICAL_ID");
            Map(x => x.KeepATID, "KEEP_AT_ID");
            Map(x => x.GuaranteeType, "GUARANTEE_TYPE");
            Map(x => x.ObligationID, "OBLIGATION_ID");
            Map(x => x.ObligationNOID, "OBLIGATION_NO_ID");
            Map(x => x.GuaranteeStartDate, "GUARANTEE_START_DATE");
            Map(x => x.GuaranteeEndDate, "GUARANTEE_END_DATE");
            Map(x => x.CreateDate, "CREATE_DATE");
            Map(x => x.CreateBY, "CREATE_BY");
            Map(x => x.ModifyDate, "MODIFY_DATE");
            Map(x => x.ModifyBY, "MODIFY_BY");
            Map(x => x.Broker, "BROKER");
            Map(x => x.BrokerID, "BROKER_ID");

        }


    }

}